<!DOCTYPE html>
<html>
<head>
	<title>查看反馈建议</title>
	<meta charset="UTF-8">
	<script src="js/jquery-1.8.3.min.js?v=1"></script>
</head>
<body>
	<table>
		<thead>
			<th style="width: 100px">序号</th>
			<th style="width: 500px">评论</th>
		</thead>
		<tbody>
			
		</tbody>
	</table>
	<script type="text/javascript">
		$(function(){
			$.ajax({
				url:'http://www.dasvidaniyalife.com:3000/commentList',
				type:'get',
				success:function(res){
					res.forEach(function(t){
						$("tbody").append("<tr><td>"+t.id+"</td><td>"+t.comment+"</td></tr>")
					})
				}
				})
		})
		
	</script>

<style type="text/css">
        table
        {
            border-collapse: collapse;
            /*margin: 0 auto;*/
            text-align: center;
        }
        table td, table th
        {
            border: 1px solid #cad9ea;
            color: #666;
            height: 30px;
        }
        table thead th
        {
            background-color: #CCE8EB;
          
        }
        table tr:nth-child(odd)
        {
            background: #fff;
        }
        table tr:nth-child(even)
        {
            background: #F5FAFA;
        }
    </style>
</body>
</html>